package com.iiot.stream.tools;

import com.htiiot.common.config.ConfigFactory;

/**
 * 获取zk上的配置信息到静态变量
 * @author dzm
 * @create 2018-06-19-10:19
 */
public class Configs {

    public static final class RedisConfig{
        // 设备离线状态间隔
        public static final String DURATION = ConfigFactory.getConfigMgr().get("spark_streaming_status","deviceovertime","600000");
        // redis中key的过期时间
        public static final String TIMEOUT = ConfigFactory.getConfigMgr().get("spark_streaming_status","redisKeyTimeOut","5184000");
    }

    public static final class OldStoreConfig{
        // 程序停止参数
        public static String STOPORDER = ConfigFactory.getConfigMgr().get("spark_streaming_status","oldStore.status");
    }

}
